<!DOCTYPE html>
<html>
<head>
		<meta charset="utf-8" />
		<title>维保</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, user-scalable=no">
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta name=”apple-mobile-web-app-status-bar-style” content=”default” />
		<meta name=”apple-mobile-web-app-status-bar-style” content=”black” />
		<meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />
		<meta content="telephone=no" name="format-detection">
		<meta content="email=no" name="format-detection">
		<meta name="format-detection" content="telephone=no"/>
		<link href="${s.base}/mobile/css/weui.min.css" rel="stylesheet"/>
		<link href="${s.base}/mobile/css/jquery-weui.css" rel="stylesheet">
		<link rel="stylesheet" href="${s.base}/mobile/css/wbNew.css" />
		<script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
</head>
<body>
	<div class="login-ctn menu-bg-color">
    	<img src="${s.base}/mobile/images/wb/logo.png">
    </div>
    <div class="login-detail">
    	<form>
        	<div class="login-detail-list">
            	<label><span class="cyfont">&#xe60f;</span></label><input type="text" id="loginName" name="loginName" placeholder="请输入手机号">
            </div>
            <div class="login-detail-list">
            	<label><span class="cyfont">&#xe610;</span></label><input type="password" id="password" name="password" placeholder="请输入密码">
            </div>
        	<div class="login-detail-list mart40">
              <button type="button" id="submit" class="menu-bg-color">登录</button>
            </div>
        </form>
    </div>
</body>
<script src="${s.base}/mobile/js/jquery-2.1.4.js"></script>
<script src="${s.base}/mobile/js/jquery-weui.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/common.js"></script>
<script>
    var token = '${token}';
    var applyId = '${applyId}';
    // 提交绑定
    $("#submit").on("click",function () {
        var loginName = $("#loginName").val();
        if (loginName == null || loginName == "") {
            $.toast("请输入手机号","text");
            return false;
        }
        var password = $("#password").val();
        if (password == null || password == "") {
            $.toast("请输入密码","text");
            return false;
        }
        $.fn.doPost('/phone/wb/login', {token:token,applyId:applyId,loginName:loginName,password:password}, function (result) {
            if (result.code == 0){
                window.location.href = "/phone/wb/index?token="+token+"&applyId="+applyId;
            }else {
                $.toast(result.msg,"text");
            }
        });
    });
</script>
</html>
